package net.cnki.sunny.service;

import com.github.pagehelper.PageInfo;
import net.cnki.sunny.model.dto.UserDTO;
import net.cnki.sunny.model.entity.User;

import java.util.List;

public interface UserService {

    List<User> getUserList();

    User selectByUser(User user);

    List<User> selectListByUser(User user);

    List<User> selectByCondition(UserDTO userDTO);

    /** 根据用户名查询 */
    User selectByUsername(String username);

    void addUser(User user);

    void modifyUser(User user);

    void deleteUser(Integer id);

    PageInfo<User> getUserList(UserDTO userDTO);
}
